hide background of button java swing

53

hide background of button java swing -

JButton play = new JButton("This",new ImageIcon("src\play.png"));
        play.setBorderPainted(false); 
        play.setContentAreaFilled(false); 
        play.setFocusPainted(false); 
        play.setOpaque(false);

Comments

Submit
0 Comments